package com.sunyard.manage.service;

import com.sunyard.dal.bo.*;
import com.sunyard.dal.bo.bulletin.*;
import com.sunyard.dal.dto.BulletinDTO;
import com.sunyard.dal.entity.Bulletin;
import com.sunyard.utils.Response.BaseResult;
import com.sunyard.utils.manage.DataGrid;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface BulletinService {

    BaseResult<DataGrid<BulletinDTO>> getBulletinList(HttpServletRequest request, PaginationBO<BulletinQueryBo> queryBO);

    BaseResult addBulletin(HttpServletRequest request, BulletinAddBO bulletinAddBO) throws Exception;

    BaseResult delBulletin(HttpServletRequest request, BulletinDeleteBO bulletinDeleteBO);

    BaseResult edit(HttpServletRequest request, BulletinUpdateBO bulletinUpdateBO);

    BaseResult<Bulletin> detail(HttpServletRequest request, BulletinDetailBO bulletinDetailBO);

    BaseResult<DataGrid<String>> getOrgByBulletinId(HttpServletRequest request, BulletinQueryBo bulletinQueryBo);

    List<BulletinDTO> getListBulletinExport(HttpServletRequest request, BulletinQueryBo bulletinQueryBo);
}

